package ie.timalb.chess.test.movement;

import ie.timalb.chess.main.core.Board;
import ie.timalb.chess.main.core.exceptions.ImpossibleToTraceARouteException;
import ie.timalb.chess.main.core.exceptions.SquareOutOfRangeException;
import ie.timalb.chess.main.core.movement.Route;
import junit.framework.TestCase;

public class RouteTester extends TestCase {
	
	public void testRouteChecker () throws ImpossibleToTraceARouteException, SquareOutOfRangeException
	{
		Board board = new Board ();
		Route route = new Route (board.getSquare(1, 1), board.getSquare(1, 4));
		assertEquals (true, route.isClear());
	}
}
